package com.wangy.service.impl;

import com.wangy.bean.Permission;
import com.wangy.mapper.PermissionMapper;
import com.wangy.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * @author yyzb
 * @date 2024/12/27 15:35
 */
@Service
public class PermissionServiceImpl implements PermissionService {

    @Autowired
    PermissionMapper permissionMapper;

    @Override
    public List<String> getPermissionByUserId(Long userId) {
        return permissionMapper.getPermissionByUserId(userId);
    }
}
